package com.chunfeng.mypen.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Description: 科目实体类
 * @author: 小雷
 * @createTime: 2023-11-13 17:54:08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "学科实体", description = "用于存储学科信息")
public class Subject implements Serializable {
    /**
     * 序列化常量
     */
    @ApiModelProperty(value = "序列化字段", hidden = true)
    private static final long serialVersionUID = -3799387627702145395L;
    /**
     * 主键
     */
    @ApiModelProperty(value = "学科ID", allowEmptyValue = true)
    private String id;
    /**
     * 学科名称
     */
    @ApiModelProperty(value = "学科名称")
    private String name;
    /**
     * 状态(0正常,1失效)
     */
    @TableLogic
    @ApiModelProperty(value = "状态(0未-删除,1-删除)", allowableValues = "0,1")
    private Integer status;
    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人", hidden = true)
    private String createUser;
    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新人", hidden = true)
    private String updateUser;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间", hidden = true)
    private String createTime;
    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间", hidden = true)
    private String updateTime;
}
